<include file="Public/head" />
</head>
<include file="Public/common_header" />
<div class="mian">
<include file="Public/sidebar" menu="cxtj.ppcx" />
    <div class="mianR">
        <div class="yuyue">
            <ul>
                <li class="yuCurrent">基本信息</li>
                <li>出价排名</li>
                <li>出价历史</li>
                <li>拍单状态跟踪</li>
                <li>智能报价</li>
            </ul>
        </div>
        <div class='listBox'>
            <div class="yuList" >
<!--                <h3 class='cha'>基本信息</h3>-->
                <div class='car_info'>
                    <div class='car_no'><span style="font-size:14px;">车辆编号：<b>{$car_info.car_source_nu}</b></span></div>
                    <table border='1' width='100%'>
                         <tbody>
                             <!--<tr>-->
                                <!--<td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>车主信息</span></td>-->
                                <!--<td width="11%" style="color:#898b8a;">车主姓名</td>-->
                                <!--<td width="39%">{$owner.seller_name}</td>-->
                                <!--<td width="11%" style="color:#898b8a;">车主电话</td>-->
                                <!--<td width="39%">{$owner.phone}</td>-->
                             <!--</tr>-->
                             <tr>
                                 <td width="11%" style="color:#898b8a;">车主类型</td>
                                 <td width="39%">{$owner.owner_type_name}</td>
                                 <if condition="$owner.owner_type eq 1">
                                     <td width="11%" style="color:#898b8a;">车主姓名</td>
                                     <td width="39%">{$owner.seller_name}</td>
                                     <else />
                                     <td width="11%" style="color:#898b8a;">公司名称</td>
                                     <td width="39%">{$owner.seller_name}</td>
                                 </if>
                             </tr>
                             <tr>
                                 <if condition="$owner.owner_type eq 1">
                                     <td width="11%" style="color:#898b8a;">联系电话</td>
                                     <td colspan="3">{$owner.phone}</td>
                                     <else />
                                     <td width="11%" style="color:#898b8a;">联系人姓名</td>
                                     <td width="39%">{$owner.contact_person}</td>
                                     <td width="11%" style="color:#898b8a;">联系电话</td>
                                     <td width="39%">{$owner.phone}</td>
                                 </if>
                             </tr>
                         </tbody>
                    </table>
                    <table border='1' width='100%' style="margin-top:20px;">
                         <tbody>
                            <tr style="background-color:#c1c1c1;font-size:14px;">
                                <td colspan='3'><span>车辆信息</span></td>
                                <td>
                                    <a href="/Car/report/car_id/{$car_info.car_id}" target="_blank">
                                        <span style="float:right;padding-right: 10%;color:#20ab4f;">检测报告</span>
                                    </a>
                                </td>
                            </tr>
                            <tr>
                                <td width="11%" style="color:#898b8a;">车型</td>
                                <td width="39%">{$car_info.model}</td>
                                <td width="11%" style="color:#898b8a;">排放标准</td>
                                <td width="39%">{$car_info.mession}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">初登日期</td>
                                <td>{$car_info.first_reg_date}</td>
                                <td style="color:#898b8a;">颜色</td>
                                <td>{$car_info.color}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">表显里程</td>
                                <td>{$car_info.pointer_mileage}万公里</td>
                                <td style="color:#898b8a;">车况级别</td>
                                <td>{$car_info.car_level}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">车辆注册地</td>
                                <td>{$car_info.reg_city}</td>
                                 <td style="color:#898b8a;">车架号</td>
                                <td>{$car_info.car_vin}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">车牌号</td>
                                <td>{$car_info.car_plate_number}</td>
                                <php>$transfer_type = array('1'=>'必须过本地','2'=>'必须过外户','3'=>'不限制');</php>
                                <td style="color:#898b8a;">过户限制</td>
                                <td>{$transfer_type[$car_info['transfer_limit']]}</td>
                            </tr>
                             <tr>
                                <td style="color:#898b8a;">渠道来源</td>
                                <td>
                                    <if condition="$car_info.comefrom neq ''">
                                        <?php if(empty($car_info['comefrom_url'])):?>
                                          <?php echo $show_from[$car_info['comefrom']];?>
                                        <?php else: ?>
                                          <a href="{$car_info.comefrom_url}" target="_blank" rel="noreferrer"><?php echo $show_from[$car_info['comefrom']];?></a>
                                        <?php endif;?>
                                      <else/>
                                          未知
                                      </if>
                                </td>
                                 <td style="color:#898b8a;">所在地</td>
                                 <td>{$car_info.location_area}</td>
                            </tr>
                         </tbody>
                    </table>
                    <if condition="$order_info.is_other_channel_deal eq 1">
                        <div class='car_no' style="margin-top:20px;"><span style="font-size:14px;" >订单编号：<b>{$order_info.order_no}</b></span></div>
                        <table border='1' width='100%'>
                            <tbody>
                            <tr>
                                <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>订单信息</span></td>
                            <tr>
                                <td width="11%" style="color:#898b8a;">订单价格</td>
                                <td width="39%">{$order_info.order_amount}</td>
                                <td width="11%" style="color:#898b8a;">收款单号</td>
                                <td width="39%">{$order_info.collection_no}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">交易佣金</td>
                                <td>{$order_info.transfer_fee}</td>
                                <td style="color:#898b8a;">采购单号</td>
                                <td>{$order_info.purchase_order_nu}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">订单生成时间</td>
                                <td colspan="3">{$order_info.create_time}</td>
                            </tr>
                            </tbody>
                        </table>
                    <else/>
                        <php>$order_type = array('0'=>'顺序拍','1'=>'定时拍')</php>
                        <div class='car_no' style="margin-top:20px;"><span style="font-size:14px;" >拍单编号：<b>{$order_info.order_no}</b></span></div>
                        <table border='1' width='100%'>
                            <tbody>
                            <tr>
                                <td colspan='4' style="background-color:#c1c1c1;font-size:14px;"><span>拍单信息</span></td>
                            <tr>
                                <td width="11%" style="color:#898b8a;">上拍场次</td>
                                <td width="39%">{$order_info.scene_name}</td>
                                <td width="11%" style="color:#898b8a;">竞拍方式</td>
                                <td width="39%">{$order_type[$order_info['is_timing_order']]}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">竞拍时长</td>
                                <td>{$order_info.est_elapsed_time}</td>
                                <td style="color:#898b8a;">竞拍开始时间</td>
                                <td>{$order_info.bidding_start_time}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">竞拍结束时间</td>
                                <td colspan="3">
                                    <if condition="$order_info.order_status egt 4">
                                        {$order_info.bidding_end_time}
                                        <else />
                                        未结束
                                    </if>
                                </td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">起拍价</td>
                                <td>{$order_info.bid_start_price}</td>
                                <td>建议起拍价</td>
                                <td>{$car_info.suggest_bid_start_price}元</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">建议价</td>
                                <?php if($car_info['suggest_min_price']==0 && $car_info['suggest_max_price']==0):?>
                                <td> - - </td>
                                <?php else:?>
                                <td>{$car_info.suggest_min_price}元 - {$car_info.suggest_max_price}元</td>
                                <?php endif;?>
                                <td style="color:#898b8a;">可用代金券</td>
                                <td>{$order_info.coupon}</td>
                            </tr>
                            <tr>

                                <td style="color:#898b8a;">保留价</td>
                                <td>{$order_info.reserve_price}
                                    <if condition="$order_info.show_reserve_price eq 1">
                                        <img src="{:get_style_cdnurl()}paimai/yunying/images/eye.png"/>
                                    </if>
                                </td>
                                <td style="color:#898b8a;">交易服务费</td>
                                <td>{$order_info.commision}</td>
                            </tr>
                            <tr>
                                <td style="color:#898b8a;">拍卖最高价</td>
                                <td>{$order_info.bidding_best_price}</td>
                                <td style="color:#898b8a;">交付服务费</td>
                                <td>{$order_info.transfer_fee}</td>
                            </tr>
                            <tr>
                                <if condition="$order_info.is_consult eq 1 AND $order_info.consult_status neq 5">
                                    <td style="color:#898b8a;">磋商成交价</td>
                                    <td>{:format_money($order_info['success_price']+$order_info['company_subsidies'])}</td>
                                    <td style="color:#898b8a;">公司补贴</td>
                                    <td>{$order_info.company_subsidies}元</td>
                                    <elseif condition="($order_info.order_status egt 7 AND $order_info.order_status neq 6 AND $order_info.order_status neq 12) AND $order_info.fail_type neq 2" />
                                    <td style="color:#898b8a;">确认成交价格</td>
                                    <td class="name-text">{:format_money($order_info['success_price'])}元</td>
                                    <td style="color:#898b8a;">公司补贴</td>
                                    <td class="name-text">无</td>
                                </if>
                            </tr>
                            </tbody>
                        </table>
                    </if>
                </div>
            </div>
            
            <div class='yuList' style='display:none'>
                <table border='1' width='100%' style='margin-top:20px;'>
                    <tr style='height:50px;'>
                        <td>出价排名</td>
                        <td>车商联系人</td>
                        <td>联系人电话</td>
                        <td>价格</td>
                        <td>出价方式</td>
                        <td>出价时间</td>
                    </tr>
                    <php>$bid_type = array('1'=>'投标','2'=>'竞价')</php>
                    <empty name="bid_history_rank_list_data">
                        <tr height='30'><td colspan="6">暂无出价排名！</td></tr>
                        <else />
                        <volist name="bid_history_rank_list_data" id="bh">
                            <tr height='30'>
                                <td>第{$bh.sort}名</td>
                                <td>{$bh.dealer_name}</td>
                                <td>{$bh.contact_mobile}</td>
                                <td>{$bh.price}元</td>
                                <td>{$bid_type[$bh['type']]}<if condition="$bh.consult_type eq 1">（磋商）</if></td>
                                <td>{$bh.createtime}</td>
                            </tr>
                        </volist>
                    </empty>
                </table>
            </div>
            
            <div class='yuList' style='display:none'>
                <table border='1' width='100%' style='margin-top:20px;'>
                    <tr style='height:50px;'>
                        <!--<td>出价排名</td>-->
                        <td>车商联系人</td>
                        <td>联系人电话</td>
                        <td>价格</td>
                        <td>出价方式</td>
                        <td>出价时间</td>
                    </tr>
                    <php>$bid_type = array('1'=>'投标','2'=>'竞价（手动报价）','3'=>'竞价（智能报价）')</php>
                    <empty name="bid_history_list">
                        <tr height='30'><td colspan="6">暂无出价记录！</td></tr>
                        <else />
                        <volist name="bid_history_list" id="bh">
                            <tr height='30'>
                                <!--<td>第{$bh.sort}名</td>-->
                                <td>{$bh.dealer_name}</td>
                                <td>{$bh.contact_mobile}</td>
                                <td>{$bh.price}元</td>
                                <td>{$bid_type[$bh['type']]}<if condition="$bh.consult_type eq 1">（磋商）</if></td>
                                <td>{$bh.createtime}</td>
                            </tr>
                        </volist>
                    </empty>
                </table>
            </div>

            <div class="yuList" style='display:none'>
                <h3 class="yonghu" style="margin-top:25px;">拍单状态跟踪</h3>
                <div class="yonghuText">
                    <h2>拍卖单号：{$order_info.order_no}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        {$car_info.reg_city} - {$car_info.model}  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        当前状态：{$order_info.order_status_name}
                    </h2>
                    <ul>
                        <li class="clearfix" style="border-bottom:1px solid #ececec;font-weight:bolder;">
                            <em>发生时间</em>
                            <em>执行操作</em>
                            <em>操作人</em>
                        </li>
                        <volist name="order_action_log" id="ol">
                            <li class="clearfix">
                                <em>{$ol.createtime}</em>
                                <em>{$ol.action_name}</em>
                                <em>{$ol.emp_name}</em>
                            </li>
                        </volist>
                    </ul>
                </div>
            </div>

			<div class="yuList" style='display:none'>
				<div class="yuyue1">
		            <ul>
		                <li class="yuCurrent">报价队列</li>
		                <li>报价历史</li>
		            </ul>
		        </div>
		        <div class='listBox1'>
			        <div id="data1" class="yuList1" style="display:block">
			        </div>
			        <div id="data2" class="yuList1" style="display:none">
			        
			        </div>
			    </div>
			</div>

        </div>
        <div class="yongBtn" style='width:170px;'>
            <input type="button"  class="quxiao" onclick="window.close()" value="关闭" />
        </div>
    </div>
</div>
<script type="text/javascript">
$(".yuyue1").find("ul li").click(function(){			
	$(".yuyue1").find("ul li").removeClass("yuCurrent");						
	$(this).addClass("yuCurrent");			
	var index=$(".yuyue1").find("ul li").index(this);
	$(".listBox1").find(".yuList1").eq(index).fadeIn().siblings().hide();
});

getPriceQueue(1);
function getPriceQueue(page){
	var url = '__URL__/price_queue/id/{:I("get.id")}/p/'+page;
	$.get(url, function(data){
		$('#data1').html(data);
	});
}


getPriceHistory(1);
function getPriceHistory(page){
	var url = '__URL__/price_history/id/{:I("get.id")}/p/'+page;
	$.get(url, function(data){
		$('#data2').html(data);
	});
}



function setMethod(m){
    $("#service_method").val(m);
}

function setStatus(status){
    $("#business_status").val(status);
}

$(".other_remark").blur(function(){
    $("#reserve_remark").val($(this).val());
});


$(".gencuur").click(function(){
    var str = $(this).children("font").html();
    $("#reserve_remark").val(str);
});
</script>
</body>
</html>
